package com.xiyu.service.controller.admin.customer;
import com.xiyu.service.vo.customer.customerContact.CustomerContactPageQueryMailOutput;
import com.xiyu.service.vo.customer.customerContact.CustomerContactPageQueryMailInput;
import org.springframework.web.bind.annotation.*;
import jakarta.annotation.Resource;
import org.springframework.validation.annotation.Validated;
import io.swagger.v3.oas.annotations.tags.Tag;
import io.swagger.v3.oas.annotations.Operation;

import jakarta.validation.*;

import com.xiyu.service.framework.web.web.core.pojo.PageResult;
import com.xiyu.service.framework.web.web.core.pojo.CommonResult;
import static com.xiyu.service.framework.web.web.core.pojo.CommonResult.success;

import com.xiyu.service.service.customer.CustomerContactService;

@Tag(name = "客户联系人")
@RestController
@RequestMapping("/customer/customer-contact")
@Validated
public class CustomerContactController {

    @Resource
    private CustomerContactService customerContactService;

    @GetMapping("/page-query-mail")
    @Operation(summary = "分页查询收件人")
    public CommonResult<PageResult<CustomerContactPageQueryMailOutput>> pageQueryMail(@Valid CustomerContactPageQueryMailInput inputVO) {
        return success(customerContactService.pageQueryMail(inputVO));
    }

}
